package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderStatistics;
import com.nbsaas.boot.order.api.domain.simple.OrderStatisticsSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单统计-列表对象转换器
*/

public class OrderStatisticsSimpleConvert implements Converter<OrderStatisticsSimple, OrderStatistics> {




@Override
public OrderStatisticsSimple convert(OrderStatistics source) {
    OrderStatisticsSimple result = new OrderStatisticsSimple();

                result.setStatDate(source.getStatDate());
                result.setRefundedCount(source.getRefundedCount());
                result.setStatType(source.getStatType());
                result.setNetAmount(source.getNetAmount());
                result.setOrderCount(source.getOrderCount());
                result.setShopName(source.getShopName());
                result.setPendingDeliveryCount(source.getPendingDeliveryCount());
                result.setRemark(source.getRemark());
                result.setCompletedCount(source.getCompletedCount());
                result.setConversionRate(source.getConversionRate());
                result.setAddDate(source.getAddDate());
                result.setPendingPayCount(source.getPendingPayCount());
                result.setNewUserCount(source.getNewUserCount());
                result.setOrderAmount(source.getOrderAmount());
                result.setPayAmount(source.getPayAmount());
                result.setAvgOrderAmount(source.getAvgOrderAmount());
                result.setActiveUserCount(source.getActiveUserCount());
                result.setPendingReceiveCount(source.getPendingReceiveCount());
                result.setCancelledCount(source.getCancelledCount());
                result.setShopId(source.getShopId());
                result.setId(source.getId());
                result.setRefundAmount(source.getRefundAmount());
                result.setLastDate(source.getLastDate());


    return result;
}

}